import $api from ".";

export const sendCode = (phone: string)=>{
    return $api.post('/sendCode', { phone })
}

export const login = (data:{ phone: string, code: string })=>{
    return $api.post('/login', data );
}